<template>
  <a-modal :title="title" width="60%" :visible.sync="value" @ok="ok" @cancel="cancel" v-bind="$attrs"> </a-modal>
</template>

<script>
export default {
  data() {
    return {
      loading: false,
    }
  },
  created() {
    console.log('dialog created')
  },
  components: {
    EzuikitPlayer,
  },
  props: {
    value: {
      default: false,
      type: Boolean,
    },
    title: {
      default: '查看',
      type: String,
    },
  },
  methods: {
    cancel() {
      this.$emit('input', false)
    },
    ok() {
      this.$emit('input', false)
      this.$emit('confirm')
    },
  },
}
</script>

<style>
</style>